package com.spsoft.vatoutinv.enums;


import lombok.Getter;

/**
 * @author wangy
 */

@Getter
public enum EnterpriseInfoStateEnum {

    ACCEPT("01", "受理"),
    BUILDING("02", "筹建期"),
    NORMAL("03", "正常"),
    STOP("04", "停业"),
    ABNORMAL("05", "非正常"),
    LIQUIDATION("06", "清算"),
    CANCELLATION("07", "注销"),
    ABNORMAL_CANCELLATION("08", "非正常户注销"),
    REPORT("09", "报验"),
    CANCELLATION_REPORT("10", "核销报验"),
    INTERRUPTION("11", "中断缴费"),
    RECOVERY("12", "恢复缴费"),
    CANCELLATION_NO_OBJECTION("13", "简易注销无异议"),
    OTHER("99", "其他");

    EnterpriseInfoStateEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    // key value
    private final String key;
    private final String value;

    // 根据key 获取 value
    public static String getValue(String key) {
        for (EnterpriseInfoStateEnum c : EnterpriseInfoStateEnum.values()) {
            if (c.getKey().equals(key)) {
                return c.getValue();
            }
        }
        return null;
    }
}
